﻿Option Strict On

Imports DbDataLib
Imports KUeLib.Buchungen
Imports KUeLib.Buchungen.Positionen
Imports System.Data.Common


Namespace ServiceDefinitions

    Public MustInherit Class BuchungspositionenDataService
        Inherits ServiceClass

        Public Sub New(ByVal dataService As DbDataService)
            MyBase.New(dataService)
        End Sub

        Public MustOverride Function GetPositionenForProcess(ByVal parentId As Integer) As List(Of Buchungsposition)

        Public MustOverride Function Save(ByVal buchungsposition As Buchungsposition) As Integer

        Public MustOverride Function GetAufteilungssummeForBuchungs(ByVal parentId As Integer) As Double

        Public MustOverride Function DeletePositionen(ByVal buchungId As Integer) As Integer

        Public MustOverride Sub DeletePosition(ByVal position As Buchungsposition)

    End Class

End Namespace
